package com.example.service.webhook.business.carrier.entity;

import com.example.service.webhook.repository.base.Saveable;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.util.Date;

/**
 * @author liyang
 * @email liyang@51dojo.com
 * @create 2017-10-31 下午8:55
 * @description 语音月份信息
 **/
@JsonIgnoreProperties(value = { "primaryVal", "keyColumns", "tableName" }, ignoreUnknown = true)
public class MonthInfoEntity implements Saveable {

    private long id;
    private String userId;
    private Date createTime;
    private Date lastModifyTime;
    private static final String[] keyColumns = {"id"};
    private static final String tableName = "t_monthinfo";

    @Override
    public String getTableName() {
        return tableName;
    }

    @Override
    public String[] getKeyColumns() {
        return keyColumns;
    }

    @Override
    public String getPrimaryVal() {
        return String.valueOf(id);
    }

    private String mobile;

    private int monthCount;

    private int missMonthCount;

    private int noCallMonth;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }


    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastModifyTime() {
        return lastModifyTime;
    }

    public void setLastModifyTime(Date lastModifyTime) {
        this.lastModifyTime = lastModifyTime;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public int getMonthCount() {
        return monthCount;
    }

    public void setMonthCount(int monthCount) {
        this.monthCount = monthCount;
    }

    public int getMissMonthCount() {
        return missMonthCount;
    }

    public void setMissMonthCount(int missMonthCount) {
        this.missMonthCount = missMonthCount;
    }

    public int getNoCallMonth() {
        return noCallMonth;
    }

    public void setNoCallMonth(int noCallMonth) {
        this.noCallMonth = noCallMonth;
    }
}
